package com.burt.repository;

import org.springframework.stereotype.Repository;

import com.burt.domain.Person;

import lombok.extern.log4j.Log4j2;

/**
 * {@link com.burt.domain.Person}用户的仓储(SQL 或 NoSQL 或 内存型)
 * 
 * @author luowei1
 * @date 2018/7/4 16:58
 */
@Log4j2
@Repository
public class PersonRepository {

    //    private final JdbcTemplate jdbcTemplate;
    //
    //    @Autowired
    //    public PersonRepository(JdbcTemplate jdbcTemplate) {
    //        this.jdbcTemplate = jdbcTemplate;
    //    }

    public boolean save(Person person) {
        log.info("save... id:{} name:{}", person.getId(), person.getName());
        return true;
    }
}
